﻿namespace System.Windows.Forms.Extensions.Model
{
    /// <summary>
    /// One item in the warning item collection
    /// </summary>
    public class WarningItem
    {
        /// <summary>
        /// Item text
        /// </summary>
        public string Text { get; private set; }

        /// <summary>
        /// Focusable dependent control (if needed, else null)
        /// </summary>
        public Control DependentControl { get; private set; }

        #region Constructors

        public WarningItem(string text)
        {
            Text = text;
            DependentControl = null;
        }

        public WarningItem(string text, Control dependentControl)
        {
            Text = text;
            DependentControl = dependentControl;
        }

        #endregion

    }
}
